import React from 'react'
import meili from './index.module.css'

let Button = props => <div style={props.style} onClick={props.submit} className={[meili.btn,meili[props.type],props.radius?meili.radius:''].join(' ')}>{props.txt}</div>

Button.defaultProps = { 
    txt:'提交',
    type:'green',
    style:{},
    submit: () => console.log('请定义submit函数触发按钮点击事件')
}

export default Button